// https://preview.pro.ant.design/dashboard/analysis?primaryColor=%231890ff&fixSiderbar=true&colorWeak=false&pwa=false

import React from 'react'
import ReactDOM from 'react-dom'
import RootRouter from '@/router/rootRouter'
// import * as serviceWorker from './serviceWorker'
import './icons'
import 'normalize.css'
import './styles/index.less'
import { ConfigProvider } from 'antd'
// import zh_CN from "antd/lib/locale-provider/zh_CN" // locale={zh_CN}

import { StoreContext } from 'redux-react-hook'
import initStore from './redux/initStore'

// 模拟接口服务
import './mock'

ReactDOM.render(
  <ConfigProvider>
    <StoreContext.Provider value={initStore}>
      <RootRouter />
    </StoreContext.Provider>
  </ConfigProvider>,
  document.getElementById('root')
)

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
// serviceWorker.unregister();

console.log(process.env)
